package com.example.zqh.mapper;

import com.example.zqh.pojo.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqh
 * @since 2022-09-12
 */
public interface CommentMapper extends BaseMapper<Comment> {

    /**
      * @Author: zqh
      * @Date:
      * @Description: 获取某个店铺评论的数量
    */
    Integer getTheNumberOfReviewsForAStore(Integer id);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 获取所有评论的数量
    */
    Integer getAllNumber();

}
